Ethical dilemmas

How do you determine whether something is morally right or wrong?