If a - b = 4 and a^2 + b^2 = 40 where a and b are positive integers

If a - b = 4 and a2 + b2 = 40 where a and b are positive integers, where a and b are positive integers, then a3 + b6 is equal to

  1. 264
  2. 280
  3. 300
  4. 324

Answer

a - b = 4

Squaring both sides, 

(a - b)2 = 16

a2 + b2 - 2ab = 16

40 - 2ab = 16

2ab = 24

Now, (a + b)2 = a2 + b2 + 2ab = 40 + 24 = 64

a + b = 8

So, 2a = 12; a =6

and 2 b = 4; b = 2

Therefore, a3 + b6 = 63 + 26 = 216 + 64 = 280

The correct option is B.