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