Write each sentence as an equation with x as the input, or independent, variable and y as the output, or dependent variable.

Six less than triple the input gives the output.