Purpose-built flat or maisonette houses , on the other hand , cost on average 228 thousand British pounds , 171 thousand British pounds less than detached houses or 54 thousand British pounds less than the average for all dwelling types .