hint:

Treat the block and the pulley separately and make a drawing showing all forces acting on each thing.
The acceleration of the block is twice that of the pulley.