Find the difference between squares of the greatest value and the smallest value of P if the number 5306P2 is divisible by 3.