You want the constant function that doesn't depend on x. Now you can't multiply by 0, but subtracting x from itself x-x=0 always.
I need to create a formula where the user would start with x and do at least 4 steps (multiplication, division or subtraction... no *0 allowed) to that number and always get 28. For example
x = any number
x+5 = n
2n+10 = y
2y+ 6 = z
z+3 = 28
obviously that is nor correct.
The trick to creating your own algebra puzzles is just keep track of what you are doing to the original number, then undo it in a different order.
Pick a number (n)
Add three so that a=n+3
Multply by 4 so that b=4a (and )
Add 120 so that c=b+120 (and ... how many 4's is that.?. )
So now what? Lets divide by 2 to throw the unsuspecting person off, then we'll have a bunch of 2's instead of a bunch of 4's. Then we can subtract a few 2's before losing the original number and getting to our goal...
Divide by 2 so that d=c/2 (and )
Subtract 14 so that e=d-14 (and )
Subtract twice the original number so that f=e-2n (and )
Subtract 12 so that g=f-12 (and )
Again, just keep track of what you've got in terms of 'n' over on the side while you are making this up. And think of things in terms of "I've got this many 4's" or "this many 2's" so you can divide later on.