In the equation 3x - 5 = 22,

where "x is the cost of a sandwich"

Diana said that "the sandwich cost $9."

Victor's answer is $5.

Who is right? Support your claim with math evidence or reasoning.