Two taken to hospital after motorcycle accident