We have that a varies directly as the square of b.
It means that when a increases, also b will increase.
Then, we can write the next equation:

Where k is the constant of variation.
If a=5 when b=3
Then:

Now, we need to find the a value when b=2.
Hence:

Replacing

Therefore, when b=2, a value will be equal to 20/9.