What is the difference between farsi,dari,persian,and pashto?

im from pakistan and i talk in urdu and some words in urdu are based off of farsi
and some if my friends from pakistan talk fluently in pashto but i was wondering what is really the difference between these languages? i mean i thought farsi and persian and dari were the same thing
im confused
6 answers 6