Subject + 如愿
如愿 (rúyuàn) means "as one wishes" or "to have one's wish fulfilled." It expresses the idea that something turned out the way a person hoped. It is often used in phrases like 如愿以偿 (to have one's wish come true).
她终于如愿考上了理想的大学。
Tā zhōngyú rúyuàn kǎoshàng le lǐxiǎng de dàxué.
She finally got her wish and was admitted to her ideal university.
经过多年的努力,他如愿以偿当上了医生。
Jīngguò duōnián de nǔlì, tā rúyuànyǐcháng dāngshàng le yīshēng.
After years of hard work, he got his wish and became a doctor.
虽然没能如愿,但这次经历让他学到了很多。
Suīrán méi néng rúyuàn, dàn zhè cì jīnglì ràng tā xuédào le hěn duō.
Although things didn't go as he wished, the experience taught him a lot.