How to use tri-state buffers to make AND and OR logic gates? I can use an inverter
Since this is homework, I'll just provide a hint:

Do you know how to make a multiplexer using two tristate buffers and an inverter?

Do you know how to implement arbitrary logic using muxes?