Sam agrees to pay an amount of 2X at the end of 4 years and…

Sam agrees to pay an amount of 2X at the end of 4 years and an amount of X at the end of 7 years. In return, she will receive $5,000 at the end of 6 years and $8,000 at the end of 10 years. At an effective annual interest rate of 3%, find the amount of Sam’s second deposit X.