Here is a Treasury spot yield curve from the Brokertec platform:
Maturity (Yrs), Coupon, Price, YTM
1, 3.00, 100.2433, 2.75
2, 3.50, 101.1497, 2.90
3, 3.90, none, 3.20
4, 4.20, 102.9455, none
the four numbers line up with the four variables
What is the yield to maturity of the 04-year bond: (a) 4.99; (b) 7.26; (c) 3.40; (d) 4.50