Yes, these both are direct relationships and can be written like

, where k is the constant of variation.
For the first equation, k = 10. For the second equation, k = -4/3. You find it by rearranging the equation into the form

, and you use the coefficient of x for k.