Answer:
Depreciation for
2017 = $2,540
2018 = $10,160
Explanation:
Provided, Total cost of the machine = $77,980
Estimated salvage value = $6,860
Therefore, value to be depreciated = $77,980 - $6,860 = $71,120
Total life of asset = 7 years
Depreciation for the year 2017 = October to December = 3 months

Depreciation for the year 2018 =
= $10,160
Under straight line method depreciation is fixed for each year, but in the given case in 2017 the asset is used only for 3 months, thus depreciation will be charged for 3 months only.
Final Answer
Depreciation for
2017 = $2,540
2018 = $10,160