Solve the following pair of linear equations by the elimination method and the substitution method: 3x + 4y = 10