since both of those are in the form y = mx + b, the slope would just be the "m" coefficient.

the slope of y = x + 3 would be 1, and the slope of y = -3x + 4 would be -3.

hope this helped! please correct me if i am wrong:)