Let's call the number we don't know n.
Since three times a number plus 3 is 24,
we can translate this to 3n + 3 = 24.
Solving from here, we subtract 3 from both sides to get 3n = 21.
Now we can divide both sides of the equation by 3 and we have n = 7.
So our number is 7.