Let \(x\) be a 2 digit number. Let \(A\), \(B\) be the first (tens) and second (units) digits of \(x\), respectively. Suppose \(A\) is twice as large as \(B\). If we add the square of \(A\) to \(x\) then we get the square of a certain whole number. Find the value of \(x\).