a) Show the math involved
b) Draw the circuit with all pin's inputs and outputs values. Also label all the pins names from the datasheet.