What are the two types of resistance in a mechanical system?