The idea is that perpendicular lines have slopes that are opposite reciprocals. So, this means that to find the slope of a line that is perpendicular to another one we should flop it and change its sign.
Given line

Its slope (the number before x) :

Flopping it :
, which is -4
Changing the sign :
4
Therefore, the slope is 4.