If x and y are non-negative integers such that \(2x+3y=8\) and \(z=x^2+y^2\), what is the maximum value of z?
A. 0
B. 5
C. 13
D. 16
E. 25
Since x and y are
non-negative integers, there aren't many solutions to the given equation, \(2x+3y=8\)
In fact, after testing in a few values, we can see that the only possible solutions are as follows:
case i) x = 1 and y = 2
case ii) x = 4 and y = 0
For each possible case, let's determine the value of z
case i) x = 1 and y = 2 In this case, \(z=x^2+y^2=1^2+2^2=1+4=5\)
case ii) x = 4 and y = 0In this case, \(z=x^2+y^2=4^2+0^2=16+0=16\)
Answer: D
Source:
manhattanreview