Can someone help me find the function rule please

Answer:
first choose 2 points to find the slope then use the slope and a point to create the function
y=2x-4