Gravar-mail: Optimal allocation of two resources in annual plants