Solve the following equations.
1. 3x + 1 = 10
2. -5n + 42 = 8​