That place that they threw you in is sorta like a jail. You were
right to use your hookshot to get out. Now remember when you were a
kid? In Kakariko village? There were these carpenter guys running
around everywhere. They're trapped in the big building below you.
You're suposed to free them. I kind of forgot exactly how to navigate
through that place, but I'll check. In the meantime, go ahead and try
to free them yourself. Jump down from the little landing place onto
the ground, and go into the big stone thing. Just make sure the guards
don't see you.