Uriah, both exercises are not correct.
Both exercises have wrong values for x.
Check them again and come back to us.
1.6m questions
2.0m answers