i need help writing a code for a math problem

Printable View