Answer:
Part a)

Part b)

Step-by-step explanation:
Part a)
If block is sliding up then net force must be zero and friction will be in opposite to the direction of motion of the block


so we have





Part b)
If block is sliding down then net force must be zero and friction will be in opposite to the direction of motion of the block


so we have




