If the line ax + 2Y + 1 = 0 is perpendicular to the line x + 3y-2 = 0, what is the value of a?

If the line ax + 2Y + 1 = 0 is perpendicular to the line x + 3y-2 = 0, what is the value of a?

The slope of the line ax + 2Y + 1 = 0 is - A / 2
The slope of the line x + 3y-2 = 0 is - 1 / 3
If two lines are perpendicular to each other, then (- A / 2) * (- 1 / 3) = - 1
a=-6