Solution for Example a

To evaluate 3x + y when x = 2 and y = –1, we replace x with 2 and y with –1 in the expression. Our answer is 5.

3x + y =
3 ∙ 2 + (–1) =
6 – 1 =
5