The variation "Z varies directly with the sum of the squares of x and y" can be written into symbols and it looks like this: (with a constant k)

Applying when x = 4 and y = 3, we have:

The value of the constant k is 1/5.
The general formula is stated above and that is z = 1/5 (x² + y² ).