ようやくりょかんのよやくがとれました means “I could finally get an inn booked.”
ようやく means “finally” and よやく means “a reservation.”
They both go up in sound so you need to emphasize the first よ of ようやく in order to pronounce them apart.
ようやく
よやく
the whole sentence