first buy the tableau desktop license based on your requirement. buy one license and use it in two machines.
buy the Tableau server license based on your end users. we need to buy min 5 user license and they will get editor permissions.
If some users just do view and interactions then buy the viewer license with min of 100. if no of users is less then don't go with tableau viewer.