Object 1 is at the origin,object 2 is at the point (30ft,30ft).At exactly the same moment object 1 move along positive x-axis at a speed of 2 feet per second, and object 2 star moving toward the origin at a speed of 3 feet per second.
a) At what time are object 1 and object 2 closest?
b) What is their distance at that time?
What I have done is that applying Pythagorean theorem I can find distance between object 2 and origin at first. $x^2$+$y^2$ = $z^2$
z = $\sqrt{30^2 + 30^2}=30\sqrt{2}$
Using implicit differentiation I get: $2*30\sqrt{2}*3$ = $2.30.y'$ + $2.2.30$
$y'\approx 2.2426$
I only be able to find the rate that the distance is decreasing but not the minimum distance nor the time. I have no idea what to do next so any help would be appreciated.
This is an optimization problem. We know that a maximum or minimum will occur only if the derivative is equal to zero. Be careful about what we are minimizing. We aren't minimizing $y(t)$ but instead we are minimizing the distance between the objects. In your question, you called the distance between the objects $z$ so we will continue using that. Using the Pythagorean Theorem to express the distance between the objects is correct. If we let $(x_1,y_1)$ denote the position of object one and $(x_2,y_2)$ denote the position of object two then the distance between the objects will be $$z^2 = {(x_2 - x_1)^2 + (y_2 - y_1)^2}.$$
This is what we have to minimize. Taking the derivative with respect to time (and noting that $x_1,x_2,y_1,y_2$ are all functions of time) we find that
$$2z\frac{dz}{dt} = 2(x_2 - x_1)\bigg(\frac{dx_2}{dt} - \frac{dx_1}{dt}\bigg) + 2(y_2 - y_1)\bigg(\frac{dy_2}{dt} - \frac{dy_1}{dt}\bigg) \tag{1}.$$
This begs the question what are $(x_1,y_1)$ and $(x_2, y_2)?$ From the problem definition we have that object one starts at the origin and moves in the positive $x$ direction at 2 feet per second. Thus we have that $x_1 = 0+2t$ and $y_1 = 0.$ Object two starts at the point $(30 \text{ ft},30\text{ ft})$ and moves toward the origin at 3 feet per second. The velocity of the object is thus split equally between the -$y$ and -$x$ directions and by the Pythagorean Theorem we have that each component should be $3\sqrt{2}/2.$ This means that the position of object two is described by $x_2 = 30 - 3t\frac{\sqrt{2}}{2}$ and $y_2 = 30 - 3t\frac{\sqrt{2}}{2}. $ Plugging these values into $\textbf{(1)},$ we have that
$$2z\frac{dz}{dt} = 2(30 - 3t\frac{\sqrt{2}}{2} - 2t)\bigg(\frac{d}{dt}(30 - 3t\frac{\sqrt{2}}{2}) - \frac{d}{dt}(2t)\bigg) + 2(30 - 3t\frac{\sqrt{2}}{2})\bigg(\frac{d}{dt}(30 - 3t\frac{\sqrt{2}}{2}) \bigg) .$$
Recall that the minimum will occur at a point where $\frac{dz}{dt} =0$ which also implies that $2z\frac{dz}{dt}=0.$ Now all we must do is solve
$$2(30 - 3t\frac{\sqrt{2}}{2} - 2t)\bigg(\frac{d}{dt}(30 - 3t\frac{\sqrt{2}}{2}) - \frac{d}{dt}(2t)\bigg) + 2(30 - 3t\frac{\sqrt{2}}{2})\bigg(\frac{d}{dt}(30 - 3t\frac{\sqrt{2}}{2}) \bigg)=0.$$ This might look a little messy but it is first order once you've taken the derivatives.
Solving for $t$ tells you the time at which the minimum distance $z$ occurs. Plugging this $t$ value into $$z(t) = \sqrt{ (x_2(t) - x_1(t))^2 + (y_2(t) - y_1(t))^2 }$$ will tell you the minimum distance between the objects.
Let me know if you need any more clarification.