Explanation:
let us first start by denoting your number as x.
we multiply x by 3 and get 3x.
we add 4 to 3x and get 3x+4.
that sum is equal to 22.
thus, we have the equation:

OPTIONAL
to solve this, we start by subtracting 4 on both sides.
this leaves us with 3x = 18.
next, we divide both sides by 3.
this finally leaves us with x = 6.
so, your number was 6.