Please refer to: Acceleration Down an Inclined Plane (Kinematics) [1].
Links:[1] https://demoweb.physics.ucla.edu/node/407