Theory:

In astronomy, the most commonly used measures of distance are the light year, and astronomical unit.
By now we know well how to measure distance from one place to another place in earth.
Earth is one of the planet in the solar family. Is it possible to measure the distance between sun and earth?
Yes, we can.
It is measured that the average distance between the earth and the sun is about 149.6 million kilometre.
This average distance is taken as one astronomical unit.
Astronomical units are usually used to measure distances within our solar system.
Astronomical unit and light years:
 
1AU=149.6millionkm=149.6×106km=1.496×1011m.
 
Where astronomical unit are denoted as AU.
 
Most objects in space are far away to be measured in kilometres or even astronomical units.
For instance measuring the distance between galaxies even astronomical units are not sufficient.
So, astronomers measure distances to objects which are outside our solar system in light-years.
A light-year (ly) is unit of distance. It is the distance that light can travel in one light year.
When light moves at a velocity of about 3 × 108 m/s. each second. So in one year (there are 365 days, and each day has 24 hours; each hour has 60 minutes; each minute has 60 seconds). Thus, the total number of seconds in one year is 3.153×107second.
 
Where light year is denoted as ly.
 
The total number of second in one year:
 
=365×24×60×60=3.153×107second
One light year is defined as the distance travelled by light in vacuum during the period of one year.
 
Onelightyear=Lightyear×totalnumberofsecondinoneyear=3×108×3.153×107Onelightyear=9.46×1015m
 
Thus, the one light year is 9.46×1015m.