How can I solve equation