ok two problems both are totally weird and have no context in my book

please help me!

1) The tangent to y=(ax+b)/(sqaureroot of x) at the point where x=1 is 2x-y=1. find a and b

2) Find a given that the tangent to y=(-2)/((ax+1)^2) at x=0 passe through the point (1,0)

any help is appreciated

thank you for all your help!

ps

this is my first chapter using calc so like limits and derivatives ect.